package com.wanxi.set;

import java.util.HashSet;
import java.util.Set;

public class StudentHashSetTest {
    public static void main(String[] args) {
        Set<StudentHashSet> set = new HashSet<>();
        set.add(new StudentHashSet("a", 1));
        set.add(new StudentHashSet("a1", 1));
        set.add(new StudentHashSet("a", 11));
        set.add(new StudentHashSet("a", 1));
//        System.out.println(set);
        for (StudentHashSet s:set
             ) {
            System.out.println(s);
        }
    }
}
